package com.tongji.seller.view.popup
{
	import com.tongji.seller.events.AddStoreSceneEvent;
	
	import mx.managers.PopUpManager;
	
	import org.robotlegs.mvcs.Mediator;
	
	
	/**
	 *caddy
	 *2012-2-9
	 *
	 */
	public class SaveLoadingTitleMediatore extends Mediator
	{
		[Inject]
		public var view:SaveLoadingTitleWindow;
		
		override public function onRegister():void
		{
			addContextListener(AddStoreSceneEvent.ADD_USER_SCENE_SUCCESS, removeWinHandler, AddStoreSceneEvent);
		}
		
		private function removeWinHandler(event:AddStoreSceneEvent):void
		{
			PopUpManager.removePopUp(view);
			mediatorMap.removeMediatorByView(view);
		}
	}
}